package cn.yjh.api.impl;

import cn.yjh.annotation.RPCMapping;
import cn.yjh.annotation.RPCService;
import cn.yjh.api.PluginService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @DESC:
 * @AUTHOR: YouJinhua
 * @DATE: 2021-12-05 16:54:29
 * @VERSION: 1.0
 */
public class PluginServiceImpl implements PluginService {

    private static final Logger logger = LoggerFactory.getLogger(PluginServiceImpl.class);

    @RPCMapping("/delete")
    @Override
    public boolean deletePlugin() {
        try {
            Class<?> clazz = Class.forName("cn.yjh.ServletPlugin");
            System.out.println(clazz.getClass().getClassLoader());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        logger.info("delete plugin===========");
        return false;
    }
}
